<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="css/bootstrap.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<title>编辑目标</title>
	<style type="text/css">
		body{
			background-image:url(img/scribble_light.png);
		}
		.first{
			padding-top:100px;
			height:300px;	
		}
		.sed{
			margin-left:300px;
			padding-top:30px;
		}
	</style>	
</head>
<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a href="#" class="brand">项目管理软件</a>
			</div>
		</div>
	</div>
	<div class="container">		
		
		<form class="form-horizontal" action="goal.jspx?_m=updata&id=${requestScope.goal.id}" id="myform" method="post">
			<fieldset class="first">
				<div>
					<h3 style="height:80px;">编辑目标</h3>
				</div>
				<div class="control-group">
					<label class="control-label" for="input01">目标名称</label>
					<div class="controls">
						<input type="text" class="span5" id="input01" name="goalname" value="${goal.goalname}" x-webkit-speech="undefined">
						<p class="help-block">修改目标名称</p>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="input01">目标描述</label>
					<div class="controls">
						<textarea class="span5" rows="8" name="goaltext" value="">${requestScope.goal.goaltext}</textarea>
						<p class="help-block">修改目标内容</p>
					</div>
				</div>
				
				<div class="sed">
					<button type="button" id="btn" class="btn btn-primary">保存</button>
					<button class="btn"><a href="goal.jspx">返回</a></button>
				</div>
			</fieldset>	
		</form>
		
	</div>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#btn").click(function(){
				var goalname = $("input[name = 'goalname']").val();
				var goaltext = $("input[name = 'goaltext']").val();
				
				$("#myform").submit();
			});
		});
	</script>	
</body>
</html>
